package com.woniu.common.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 杜梅杰
 * @description
 * @date 2024/4/7 15:29
 */
@AllArgsConstructor
@Getter
public enum ResponseEnum {
    SUCCESS(200,"ok"),
    FAIL(500,"fail"),
    LOGIN_FAIL(2000,"登录失败"),
    NO_LOGIN(2001,"未登录"),
    NO_AUTH(2002,"无权限"),
    PARAM_ERROR(2003,"参数错误"),
    DATE_EMPTY(2004,"日期为空"),
    ACCOUNT_ERROR(2005,"用户名重复"),
    NEED_EMPTY(2006,"必填项为空"),
    PASSWORD_FAIL(2009,"原密码错误"),
    USER_NULL(2010,"用户不存在"),
    TOTAL_ERROR(2011,"库存不足"),
    HAVING_COUPON(2012,"优惠券已拥有,请先使用在兑换"),
    PAY_AGAIN(2013,"请勿重复支付");
    private Integer code;
    private String msg;
}